package org.jeecg.modules.zhima.portal.enums;

public enum GameScoreType {
    /**
     * 重量赛
     */
    HEIGHT(1, "斤"),
    /**
     * 尾数赛
     */
    COUNT(2, "尾");

    public Integer CODE;

    public String VALUE;

     GameScoreType(Integer code, String value){
        this.CODE = code;
        this.VALUE = value;
    }

    public static GameScoreType get(int code){
         switch (code){
             case 1:
                 return HEIGHT;
             case 2:
                 return COUNT;
             default:
                 return HEIGHT;
         }
    }
}
